
import React, { Component } from 'react';
import "./index.css";

export default class index extends Component {

  goContextTree=()=>{
    console.log("Home组件：this.props",this.props);
    this.props.history.push("/ContextTree");
  }
  
  render() {
    return (
      <div className='home-box'>
        <h1>首页:Home</h1>
      <input type="button" value="去状态树传参页面" onClick={this.goContextTree} />
      </div>
    )
  }
}
